Skip to content

Conversation

akhmerov
Copy link

Closes #15.

I am happy to finalize this, but beforehand I'd like to know

  • whether this extension is welcome
  • what API changes should this PR contain

@akhmerov
Copy link
Author

@chrisjsewell sorry for the ping, but I would like to know whether you will have a chance to take a look at this.

@tovrstra
Copy link

Thanks for getting this started. I'd also be interested in an improvement along these lines, but I'm not sure if it will work as such. Once you get the response from the proper authority, each will need a different doi_template to format the tooltip.

@akhmerov
Copy link
Author

akhmerov commented Sep 10, 2025

There are 12 DOI authorities in total, so even in the worst case scenario all of them would be possible to support. At a glance only CrossRef and DataCite seem to be relevant to our community. Multiple authorities can be supported either with a more complex template (hacky) or by changing the template API (which is why I asked in the PR).

Here's a complete monkey-patch supporting both authorities: https://github.com/quantum-tinkerer/pymablock/blob/main/docs/source/conf.py#L121-L216

@tovrstra
Copy link

That's nice! I hope one of the maintainers can find some time to get involved. (I'm in the same boat, i.e. cannot make it work with DOIs from multiple authorities.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility to use multiple DOI APIs
2 participants